package com.ruoyi.record.domain;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 考勤对象 record_attend
 * 
 * @author ruoyi
 * @date 2022-09-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("record_attend")
public class RecordAttend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤id */
    @TableId(type = IdType.AUTO)
    private Long attendId;

    /** 考勤部门 */
    @NotBlank(message = "考勤部门不能为空")
    @Excel(name = "考勤部门")
    private Long deptId;

    @TableField(exist = false)
    private String deptName;

    /** 考勤时间 */
    @NotBlank(message = "考勤时间不能为空")
    @Excel(name = "考勤时间")
    private String attendMonth;

    /** 考勤状态（0未提交1已提交） */
    @NotBlank(message = "考勤状态不能为空")
    @Excel(name = "考勤状态", readConverterExp = "0=未提交1已提交")
    private String attendStatus;

    /** 考勤人员 */
    private String attendUser;

    /** 科室负责人 */
    private String deptUser;

    /** 删除状态（0正常2删除） */
    @TableLogic
    private String delFlag;

}
